<!-- 群管理 -->
<template>
  <div id="GroupManagement">
    <!-- 头部 -->
    <Head title="群管理" BackType1="true"></Head>
    <!-- 主体 -->
    <div id="Main">
      <ul class="ListBox">
        <li @click="pushUrl('groupadministrator')">
          <span>设置管理员</span>
          <img src="../assets/img/arrowIcon.png" alt>
        </li>
        <li @click="pushUrl('groupinactivemembers')">
          <span>群成员活跃度</span>
          <img src="../assets/img/arrowIcon.png" alt>
        </li>
        <li @click="pushUrl('groupmembersback')">
          <span>退群成员列表</span>
          <img src="../assets/img/arrowIcon.png" alt>
        </li>
      </ul>
      <ul class="chat">
        <li @click="pushUrl(Str)">
          <div class="chat_w">
            <h5>即时聊天删除</h5>
            <span>删除即时聊天记录后，聊天室中对应的内容将会被清空。</span>
          </div>
          <img src="../assets/img/arrowIcon.png" alt>
        </li>
        <li>
          <div class="chat_w">
            <h5>群禁言</h5>
            <span>
              全员禁言启用后，只允许群主和管理员发言进入群成员名片，可对单个成员设置禁言
            </span>
          </div>
          <van-switch v-model="checked"/>
        </li>
      </ul>
      <ul class="transfer ListBox">
        <li @click="pushUrl('findmembers')">
          <span>群主管理权转让</span>
          <img src="../assets/img/arrowIcon.png" alt>
        </li>
      </ul>
      <ul class="chat">
        <li>
          <div class="chat_w">
            <h5>群成员保护模式</h5>
            <span>
              开启后，群成员无法通过该群添加好友。
            </span>
          </div>
          <van-switch v-model="checked"/>
        </li>
      </ul>
      <ul class="chat">  
        <li>
          <div class="chat_w">
            <h5>是否开启群认证</h5>
            <span>
              开启后，需管理员同意才能加入群聊。
            </span>
          </div>
          <van-switch v-model="checked"/>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import Head from "../components/Head.vue";
import { Switch } from "vant";

export default {
  data() {
    return {
      checked: true
    };
  },
  components: {
    Head,
    [Switch.name]: Switch
  },
  methods: {
    pushUrl(Str){
      this.$router.push({
        path:'/'+Str
      })
    }
  }
};
</script>

<style lang="less" scoped>
#GroupManagement {
  font-size: 28px;
  #Main {
    position: fixed;
    top: 88px;
    overflow: scroll;
    width: 100%;
    .ListBox {
      margin-top: 11px;
      padding-left: 30px;
      background-color: #ffffff;
      border-bottom: 1px solid #e5e5e5;
      li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 28px;
        padding-bottom: 26px;
        padding-right: 30px;
        border-bottom: 1px solid #e5e5e5;
        span {
          font-size: 34px;
          color: #323232;
          font-family: PingFangSC-Regular;
          // font-weight:400;
        }
        img {
          width: 16px;
          height: 25px;
        }
      }
      li:last-child {
        border: none;
      }
    }
    .chat {
      margin-top: 20px;
      padding-left: 30px;
      background-color: #ffffff;
      border-bottom: 1px solid #e5e5e5;
      li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 28px;
        padding-bottom: 26px;
        padding-right: 30px;
        border-bottom: 1px solid #e5e5e5;
        .chat_w {
          width: 545px;
          h5 {
            margin-bottom: 19px;
            font-size: 34px;
            color: #323232;
            font-family: PingFangSC-Regular;
          }
          span {
            // margin-right: 179px;
            font-size: 26px;
            color: #888888;
            font-family: PingFangSC-Regular;
          }
        }
        img {
          width: 16px;
          height: 25px;
        }
      }
      li:last-child {
        border: none;
      }
    }
    .transfer{
      margin-top: 20px;
    }
  }
}
</style>
